package cn.itcast.service.impl;

import cn.itcast.dao.StandardDao;
import cn.itcast.domain.Standard;
import cn.itcast.service.StandardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * @ClassName StandardServiceImpl
 * @Descrintion TODO
 * @Author wly
 * @Date 2019/1/20 16:00
 * @Version 1.0
 **/
@Service
public class StandardServiceImpl implements StandardService {

    @Autowired
    private StandardDao standardDao;

    @Override
    public Page<Standard> findAll(Pageable pageable) {
        return standardDao.findAll(pageable);
    }

    @Override
    public void save(Standard standard) {
        standardDao.save(standard);
    }
}
